package com.my.factory.factory;

import com.my.product.Product;

/**
 * com.my.factory.factory
 * linwenjie
 * 2019-06-10
 * 工厂模式测试类
 */
public class FactoryTest {
    public static void main(String[] args) {
        IFactory factory = new FactoryA();
        Product product = factory.createProduct();
        product.feature();
    }
}
